package com.utn.tp.integrador.conexion;

import java.text.SimpleDateFormat;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

public class Conectividad extends BroadcastReceiver {

	SimpleDateFormat formato = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss");
	String fecha = formato.format(System.currentTimeMillis());

	/** Network connectivity information */
	@Override
	public void onReceive(Context context, Intent intent) {
		new ConexionAsyncTask(intent.getAction(), context, intent, fecha)
				.execute();
	}

}
